package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author hyl
 * @since 2022-08-28
 */
@TableName("user_approve")
@ToString
public class UserApprove implements Serializable {

    private static final long serialVersionUID = 1L;
    public static final int UNAPPROVED = 0;
    public static final int APPROVED = 1;

    public static final int OUT_OF_TIME = 2;
    public static final int DISAPPROVE = 3;
    @TableId(value = "user_approve_id", type = IdType.AUTO)
    private Integer userApproveId;
    @TableField(value = "user_id", property = "user.userId")
    private User user;
    @TableField(value = "dept_id", property = "dept.deptId")
    private Dept dept;
    @TableField(value = "user_app_category_id", property = "userAppCategory.userAppCategoryId")
    private UserAppCategory userAppCategory;

    private String userApplyDate;

    private String userApproveDate;

    private String userApproveCredential;

    private String userApproveFeedback;

    private String userApproveStatus;
    @TableField(exist = false)
    private String applyDateSince;
    @TableField(exist = false)

    private String applyDateEnd;

    public String getApplyDateSince() {
        return applyDateSince;
    }

    public void setApplyDateSince(String applyDateSince) {
        this.applyDateSince = applyDateSince;
    }

    public String getApplyDateEnd() {
        return applyDateEnd;
    }

    public void setApplyDateEnd(String applyDateEnd) {
        this.applyDateEnd = applyDateEnd;
    }

    public String getApproveDateSince() {
        return approveDateSince;
    }

    public void setApproveDateSince(String approveDateSince) {
        this.approveDateSince = approveDateSince;
    }

    public String getApproveDateEnd() {
        return approveDateEnd;
    }

    public void setApproveDateEnd(String approveDateEnd) {
        this.approveDateEnd = approveDateEnd;
    }

    @TableField(exist = false)

    private String approveDateSince;
    @TableField(exist = false)

    private String approveDateEnd;


    public Integer getUserApproveId() {
        return userApproveId;
    }

    public void setUserApproveId(Integer userApproveId) {
        this.userApproveId = userApproveId;
    }

    public com.woniu.entity.User getUser() {
        return user;
    }

    public void setUser(com.woniu.entity.User user) {
        this.user = user;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public UserAppCategory getUserAppCategory() {
        return userAppCategory;
    }

    public void setUserAppCategory(UserAppCategory userAppCategory) {
        this.userAppCategory = userAppCategory;
    }

    public String getUserApplyDate() {
        return userApplyDate;
    }

    public void setUserApplyDate(String userApplyDate) {
        this.userApplyDate = userApplyDate;
    }

    public String getUserApproveDate() {
        return userApproveDate;
    }

    public void setUserApproveDate(String userApproveDate) {
        this.userApproveDate = userApproveDate;
    }

    public String getUserApproveCredential() {
        return userApproveCredential;
    }

    public void setUserApproveCredential(String userApproveCredential) {
        this.userApproveCredential = userApproveCredential;
    }

    public String getUserApproveFeedback() {
        return userApproveFeedback;
    }

    public void setUserApproveFeedback(String userApproveFeedback) {
        this.userApproveFeedback = userApproveFeedback;
    }

    public String getUserApproveStatus() {
        return userApproveStatus;
    }

    public void setUserApproveStatus(String userApproveStatus) {
        this.userApproveStatus = userApproveStatus;
    }


}
